package com.richinfo.buddy.provider.schedule.command;

import javax.annotation.Resource;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import com.richinfo.buddy.provider.schedule.quartz.job.DemoJob;
import com.richinfo.buddy.provider.schedule.quartz.job.FindAllActivityJob;
import com.richinfo.buddy.provider.schedule.quartz.job.FindAllUserJob;

/**
 * Created by WangXJ
 * 2019-06-04 17:23
 */
@Component
public class JobCommandLine implements CommandLineRunner {

	@Resource
	private DemoJob demoJob;
	
	@Resource
	private FindAllUserJob findAllUserJob;
	
	@Resource
	private FindAllActivityJob findAllActivityJob;
	
	@Override
	public void run(String... args) throws Exception {
		// demoJob
		demoJob.startJob();
		
		findAllUserJob.startJob();
		findAllActivityJob.startJob();
	}

}
